﻿namespace SuperMarieApi.App.Controllers.Framework.DataAccess.SqlBuilder
{
    public class LeftBracketCondition:Condition
    {
        public SqlRelation Relation { get; private set; }

        public LeftBracketCondition(SqlRelation relation)
        {
            this.Relation = relation;
        }

        public override string GetPrepend()
        {
            return this.GetRelationString(this.Relation);
        }

        public override string Build2String(DataCommand dbCommand)
        {
            return " (";
        }
    }
}
